# -*- coding:utf-8 -*-
# -------------------------------------------------------------------------------
# Description:  
# Reference:
# Author: 安智军
# Date:   2021/12/16
# -------------------------------------------------------------------------------
from common.readYaml import ReadYaml
from config.config import basepath

file_path = basepath+"/config/headers.yml"


def get_headers_dict():
    '''
    从headers.yml文件中获取headers信息
    :return: 返回headers字典
    '''
    headers_dict = ReadYaml.read(file_path)
    return headers_dict['headers']


# print(get_headers_dict())
'''
{'Authorization': 'eyJhbGciOiJIUzUxMiJ9.eyJTVUJfU1lTVEVNX0FVVEgiOiJbVE1TLCBXTVNdIiwiVVNFUk5BTUUiOiJ5YW5zaG91MjAyMTA0M
zAiLCJleHAiOjE2NTc2NjE4OTEsIkNVUlJfU1VCX1NZU1RFTV9DT0RFIjoiV01TIiwiQ0VOVEVSX0lEIjoxfQ.M3JKW1b9BRbihuWZBiCPdcCF0aKDmHUh
LBEgb1omULqLC_XGJTngsMzhCsUnrBYcS9LnCYXXERyy5Vainc4gxQ',
 'app_key': '6CC77440B3EEE785966D799E3BC0D216', 
 'sign': 'BAD7AE93AB059574C6EC2F60BE9C0F90', 'subSystemCode': 'WMS'}
'''